<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"      
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
    
    <h:head>
        <title><h:outputText value="#{msg['sistema.nombre']}" /></title>
        <link type="text/css" href="recursos/estilos/acd.main.css" rel="stylesheet" />        
        <c:if test="#{!sessionScope['usuario'].valid}" >
        <script type="text/javascript" src="recursos/scripts/jquery-1.8.2.js" ></script>
        </c:if>
        <script type="text/javascript" src="recursos/scripts/acd.main.js" ></script>                   
        <style>
            .tdClass1{width:150px; padding:5px; vertical-align: middle; }
            .tdClass2{width:180px; padding:5px; vertical-align: middle; }                      
            .tdClass3{ padding:5px; vertical-align: middle;}
            
            .tdClassA{}
            .tdClassB{width:100%}
        </style>
    </h:head>
    
    <h:body>
        <ui:include src="elementos/header.xhtml" />
        

        
        <div class="body">
        <center>            
            <div class="inBody" style="font-size: 12px;">
                <c:choose>
                    <c:when test="#{sessionScope['usuario'].admin}">
                        <!--
                        <ui:include src="elementos/concursos/nuevo.xhtml" />
                        <ui:include src="elementos/concursos/editar.xhtml" />
                        <ui:include src="elementos/concursos/usuarios.xhtml" />
                        -->
                        <ui:include src="elementos/concursos/default.xhtml" />
                        
                        
                        <br/>
                        <div style="text-align:right;">
                            <h:form>                        
                            <p:commandButton value="Regresar a la página principal" 
                                     icon="ui-icon-arrowreturnthick-1-w" action="index" /> 
                            </h:form>                    
                        </div>
                    </c:when>
                    <c:otherwise>
                        <ui:include src="elementos/redireccionar.xhtml" />
                    </c:otherwise>
                </c:choose>
            </div>
        </center>
        </div>    
        <ui:include src="elementos/footer.xhtml" />    
    </h:body>

    
    
    
    
</html>
